package com.tedu.pojo;

import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

/**
 * 用户实体类   与用户表  一一对应
 *表中字段======本类的属性名称
 */
@TableName(value = "pd_user")   //实体类user与pd_user  表对应
public class User {

     private int id;// 用户  ID
     private String username;//'用户名',
    private String password;//密码，加密存储',
    private String phone;// '注册手机号',
    private String email;// '注册邮箱',
//    @DateTimeFormat("yyyy-MM-dd hh:mm:ss")
    private Date created;//用户注册时间,
    private Date updated;// 用户的更新数据时间

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", created=" + created +
                ", updated=" + updated +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }
}
